// 引入axios对象
import request from '../utils/request.js'

// 面试题筛选接口
export function filterQuestionInfo () {
  return request({
    url: '/interview/filters',
    needToken: true
  })
}

// 获取模拟面试题
export function getQuestionInfo (params) {
  return request({
    url: '/interview/questions',
    needToken: true,
    params
  })
}

// 提交题目答案
export function submitQuestion (data) {
  return request({
    url: '/questions/submit',
    method: 'POST',
    needToken: true,
    data: data
  })
}

// 获取下一题数据
export function nextQuestion (id) {
  return request({
    url: `/questions/${id}`,
    needToken: true
  })
}
